﻿#if($msg)
<script>
alert('$!msg');
</script>
#end
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>模板生成管理</title>
<link href="/include/manage/images/main/style.css" rel="stylesheet" type="text/css" />
<link href="/include/manage/dialog/asyncbox.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="/include/manage/js/jquery.js"></script>
<script language="javascript">
jQuery.ajaxSetup ({
	cache: false
});

function showSpecies(){
	if($('#species')[0].style.display=='none'){
		$('#species')[0].style.display='block';
	}else{
		$('#species')[0].style.display='none';
	}
}
</script>
</head>
<body>
<form name="writeform" method="post" action="/manage_gtemplate.ad">
<input type="hidden" name="parameter" value="$!action" />
<input type="hidden" name="sitedir" value="$!sitedir" />
<input type="hidden" name="name" value="$!name" />
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="30" background="/include/manage/images/main/tab_05.gif">
		<table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="12" height="30"><img src="/include/manage/images/main/tab_03.gif" width="12" height="30" /></td>
        <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="46%" valign="middle"><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="5%"><div align="center"><img src="/include/manage/images/main/tb.gif" width="16" height="16" /></div></td>
                <td width="95%"><span class="STYLE3">当前位置</span>：[模板管理]-[生成规则]</td>
              </tr>
            </table></td>
            <td width="54%"><table border="0" align="right" cellpadding="0" cellspacing="0">
              <tr>
                <td width="80"><table width="100%" border="0" cellpadding="0" cellspacing="0">
                  <tr>
                    <td><div align="center"><a href="/manage_gtemplate.ad?parameter=add&pid=$!type.id"><img src="/include/manage/images/main/22.gif" width="14" height="14" /></a></div></td>
                    <td><div align="center"><a href="/manage_gtemplate.ad?parameter=add&pid=$!type.id">保存全局</a></div></td>
                  </tr>
                </table></td>
                <td width="80"><table width="100%" border="0" cellpadding="0" cellspacing="0">
                  <tr>
                    <td><div align="center"><a href="/manage_gtemplate.ad?parameter=delete&id=$!type.id"><img src="/include/manage/images/main/11.gif" width="14" height="14" /></a></div></td>
                    <td><div align="center"><a href="/manage_gtemplate.ad?parameter=delete&id=$!type.id">载入默认</a></div></td>
                  </tr>
                </table></td>
              </tr>
            </table></td>
          </tr>
        </table></td>
        <td width="16"><img src="/include/manage/images/main/tab_07.gif" width="16" height="30" /></td>
      </tr>
    </table></td>
  </tr>
  <tr>
  	<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="8" background="/include/manage/images/main/tab_12.gif">&nbsp;</td>
        <td>
<table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#b9d9e9">
	<tr>
		<td colspan="4" width="150" height="22" background="/include/manage/images/main/bg.gif"><b><span style="margin:8px;">生成模板 $!name</span></b></td>
	</tr>
    <tr>
      <td height="25" bgcolor="#ffffff">&nbsp;匹配模板类型：</td>
      <td bgcolor="#ffffff" colspan="3">&nbsp;文件自动匹配为“$!species”，你也可以手动选择模板类型：
      		<select name="species">
      			<option value="index">首页模板</option>
      			<option value="list">频道模板</option>
      			<option value="news">内容模板</option>
      			<option value="search">搜索模板</option>
      		</select>
      </td>
    </tr>
    <tr>
      <td width="100" height="25" bgcolor="#ffffff">&nbsp;生成公共头部：</td>
      <td width="300" bgcolor="#ffffff">&nbsp;
      	<input id="isghead" name="ghead" type="radio" value="1" checked /><label for="isghead">是</label>
      	<input id="isnotghead" name="ghead" type="radio" value="0" checked /><label for="isnotghead">否</label>
      </td>
      <td width="100" bgcolor="#ffffff">&nbsp;生成公共尾部：</td>
      <td bgcolor="#ffffff">&nbsp;
      	<input id="isgfoot" name="gfoot" type="radio" value="1" checked /><label for="isgfoot">是</label>
      	<input id="isnotgfoot" name="gfoot" type="radio" value="0" checked /><label for="isnotgfoot">否</label>
      </td>
    </tr>
    <tr>
		<td bgcolor="#ffffff">&nbsp;匹配所属频道：</td>
		<td bgcolor="#ffffff">&nbsp;
      		<input id="isgtype" name="gtype" type="radio" value="1" checked /><label for="isgtype">是</label>
      		<input id="isnotgtype" name="gtype" type="radio" value="0" checked /><label for="isnotgtype">否</label>
		</td>
		<td height="25" bgcolor="#ffffff">&nbsp;插入可视化标签：</td>
    	<td bgcolor="#ffffff">&nbsp;
      		<input id="isgdesign" name="gdesign" type="radio" value="1" checked /><label for="isgdesign">是</label>
      		<input id="isnotgdesign" name="gdesign" type="radio" value="0" checked /><label for="isnotgdesign">否</label>
      </td>
    </tr>
    <tr>
    	<td colspan="4" bgcolor="#ffffff">
    		&nbsp;生成摘要：<br/>
    		
    	</td>
    </tr>
    
    <tr>
    	<td colspan="4" bgcolor="#ffffff"> - 暂不支持预览 - </td>
    </tr>
</table>
		</td>
        <td width="8" background="/include/manage/images/main/tab_15.gif">&nbsp;</td>
      </tr>
    </table></td>
    </tr>
  <tr>
    <td height="35" background="/include/manage/images/main/tab_19.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="12" height="35"><img src="/include/manage/images/main/tab_18.gif" width="12" height="35" /></td>
        <td valign="top"><div align="center">
          <input type="submit" name="Submit" value="保存" />
          &nbsp;
          <input type="reset" name="Reset" value="重置" />
          &nbsp;
          <input type="button" id="generate" name="generate" value="开始生成"/>
        </div></td>
        <td width="16"><img src="/include/manage/images/main/tab_20.gif" width="16" height="35" /></td>
      </tr>
    </table>
	</td>
  </tr>
</table>
  </form>
</body>
</html>